package com.mxpio.erp.common.equipment.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 稽核操作历史对象 EQUIPMENT_AUDIT_OPERATION
 *
 * @author Cheng
 * @date 2023-07-10
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_AUDIT_OPERATION")
@Schema(description="稽核操作历史")
public class EquipmentAuditOperation extends BaseEntity {

private static final long serialVersionUID=1L;


    @Id
    @Generator(policy = UUIDPolicy.class)
    @Column(name = "ID_")
    @Schema(description = "id")
    private String id;

    @Column(name = "AUDIT_ID_")
    @Schema(description = "稽核ID")
    private String auditId;

    @Column(name = "OPERATE_")
    @Schema(description = "操作节点")
    private String operate;

    @Column(name = "OPERATOR_")
    @Schema(description = "操作人")
    private String operator;

    @Column(name = "OPERATE_TIME_")
    @Schema(description = "操作时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

    @Column(name = "REASON_")
    @Schema(description = "操作原因")
    private String reason;

}
